#ifndef __c_defines_h__
#define __c_defines_h__

#include <cstdio>

#define NONE "\033[m"
#define RED "\033[0;31m"
#define GREEN "\033[0;32m"
#define YELLOW "\033[0;33m"

#define LOG(COLOR, fmt, ...) printf(COLOR fmt NONE "\n", ##__VA_ARGS__)

#define ERROR(fmt, ...) LOG(RED, fmt, ##__VA_ARGS__)
#define WARN(fmt, ...) LOG(YELLOW, fmt, ##__VA_ARGS__)
#define INFO(fmt, ...) LOG(GREEN, fmt, ##__VA_ARGS__)

#endif